package shin.blog.web.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION,detachable="true")
public class Blog implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long blogId;

	@Persistent
	private String title;

	@Persistent
	private String context;

	@Persistent
	private String abstarct;

	@Persistent
	private Long authorId;

	@Persistent
	private Long categoryId;

	@Persistent
	private boolean isPublic;

	@Persistent
	private boolean isBanremark;

	@Persistent
	private boolean isStarred;

	@Persistent
	private Date createAt;

	@Persistent
	private Date updateAt;

	@Persistent
	private int remarksCount;

	@Persistent
	private int tagsCount;

	public Long getBlogId() {
		return blogId;
	}

	public void setBlogId(Long blogId) {
		this.blogId = blogId;
	}
	

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public String getAbstarct() {
		return abstarct;
	}

	public void setAbstarct(String abstarct) {
		this.abstarct = abstarct;
	}

	
	
	public boolean isPublic() {
		return isPublic;
	}

	public void setPublic(boolean isPublic) {
		this.isPublic = isPublic;
	}

	public boolean isBanremark() {
		return isBanremark;
	}

	public void setBanremark(boolean isBanremark) {
		this.isBanremark = isBanremark;
	}

	public boolean isStarred() {
		return isStarred;
	}

	public void setStarred(boolean isStarred) {
		this.isStarred = isStarred;
	}

	public int getRemarksCount() {
		return remarksCount;
	}

	public void setRemarksCount(int remarksCount) {
		this.remarksCount = remarksCount;
	}

	public int getTagsCount() {
		return tagsCount;
	}

	public void setTagsCount(int tagsCount) {
		this.tagsCount = tagsCount;
	}

	

	public Long getAuthorId() {
		return authorId;
	}

	public void setAuthorId(Long authorId) {
		this.authorId = authorId;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	public Date getCreateAt() {
		return createAt;
	}

	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}

	public Date getUpdateAt() {
		return updateAt;
	}

	public void setUpdateAt(Date updateAt) {
		this.updateAt = updateAt;
	}
}
